package com.xgry.bpm.api.business.leave.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author adrian
 * @since 2020-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Leave extends Model<Leave> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @TableField("leaveDate")
    private LocalDateTime leaveDate;

    @TableField("leaveDays")
    private Integer leaveDays;

    @TableField("leaveReason")
    private String leaveReason;

    @TableField("processInstanceId")
    private String processInstanceId;

    private String state;

    @TableField("userId")
    private Integer userId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
